package com.ssm.card.dao.model.card;


import com.jee.ssm.common.core.base.BaseModel;
import com.ssm.card.dao.model.building.Building;
import com.ssm.card.dao.model.estate.Estate;
import com.ssm.card.dao.model.residence.Residence;
import com.ssm.card.dao.model.unit.Unit;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 表名 d_card
 * @author GaoXiang
 * @version 1.0
 * Create time 2017/04/28
 */
public class Card extends BaseModel implements Serializable {
    /**
     * 主键
     * 表字段 : d_card.id
     * Create time 2017/04/28
     */
    private String id;

    /**
     * 卡类型 默认 1  管理卡：2
     * 表字段 : d_card.type
     * Create time 2017/04/28
     */
    private String type;

    /**
     * 设备编号
     * 表字段 : d_card.number
     * Create time 2017/04/28
     */
    private String number;

    /**
     * 小区ID
     * 表字段 : d_card.residence_id
     * Create time 2017/04/28
     */
    private String residenceId;

    /**
     * 楼栋ID
     * 表字段 : d_card.building_id
     * Create time 2017/04/28
     */
    private String buildingId;

    /**
     * 单元ID
     * 表字段 : d_card.unit_id
     * Create time 2017/04/28
     */
    private String unitId;

    /**
     * 注册时间
     * 表字段 : d_card.create_time
     * Create time 2017/04/28
     */
    private Date createTime;

    /**
     * 失效时间
     * 表字段 : d_card.card_aging
     * Create time 2017/04/28
     */
    private Date cardAging;

    /**
     * 失效状态（0无效  1有效）
     * 表字段 : d_card.status
     * Create time 2017/04/28
     */
    private String status;
    /**
     * 备注
     */
    private String intro;

    private Integer validDate;

    /**
     * 物业ID
     */
    private String estateId;

    private Residence residence;
    private Building building;
    private Unit unit;
    private Estate estate;

    private String residenceName;
    private String buildingName;
    private String unitName;
    private String userName;
    private String userAge;

    private String userId;

    private String userRoomId;
    private Integer longtime;
    private Date openTime;
    private String floor;
    private String roomName;

    private  String sensitiveStatus;


    /**
     * 构造方法
     */
    public Card(String id, String type, String number, String residenceId, String buildingId, String unitId, Date createTime, Date cardAging, String status) {
        this.id = id;
        this.type = type;
        this.number = number;
        this.residenceId = residenceId;
        this.buildingId = buildingId;
        this.unitId = unitId;
        this.createTime = createTime;
        this.cardAging = cardAging;
        this.status = status;
    }

    /**
     * 构造方法
     */
    public Card() {
        super();
    }

    public Card(String id, String buildingId) {
        this.id = id;
        this.buildingId = buildingId;
    }

    /**
     * 主键
     * @return id 主键
     */
    public String getId() {
        return id;
    }

    /**
     * 主键
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 卡类型 默认 1
     * @return type 卡类型 默认 1
     */
    public String getType() {
        return type;
    }

    /**
     * 卡类型 默认 1
     * @param type 卡类型 默认 1
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 设备编号
     * @return number 设备编号
     */
    public String getNumber() {
        return number;
    }

    /**
     * 设备编号
     * @param number 设备编号
     */
    public void setNumber(String number) {
        this.number = number;
    }

    /**
     * 小区ID
     * @return residence_id 小区ID
     */
    public String getResidenceId() {
        return residenceId;
    }

    /**
     * 小区ID
     * @param residenceId 小区ID
     */
    public void setResidenceId(String residenceId) {
        this.residenceId = residenceId;
    }

    /**
     * 楼栋ID
     * @return building_id 楼栋ID
     */
    public String getBuildingId() {
        return buildingId;
    }

    /**
     * 楼栋ID
     * @param buildingId 楼栋ID
     */
    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    /**
     * 单元ID
     * @return unit_id 单元ID
     */
    public String getUnitId() {
        return unitId;
    }

    /**
     * 单元ID
     * @param unitId 单元ID
     */
    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }

    /**
     * 注册时间
     * @return create_time 注册时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 注册时间
     * @param createTime 注册时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 失效时间
     * @return card_aging 失效时间
     */
    public Date getCardAging() {
        return cardAging;
    }

    /**
     * 失效时间
     * @param cardAging 失效时间
     */
    public void setCardAging(Date cardAging) {
        this.cardAging = cardAging;
    }

    /**
     * 失效状态（0无效  1有效）
     * @return status 失效状态（0无效  1有效）
     */
    public String getStatus() {
        return status;
    }




    /**
     * 失效状态（0无效  1有效）
     * @param status 失效状态（0无效  1有效）
     */

    public void setStatus(String status) {
        this.status = status;
    }

   public Residence getResidence() {
        return residence;
    }

    public void setResidence(Residence residence) {
        this.residence = residence;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    public Unit getUnit() {
        return unit;
    }

    public void setUnit(Unit unit) {
        this.unit = unit;
    }


    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Integer getValidDate() {
        return validDate;
    }

    public void setValidDate(Integer validDate) {
        this.validDate = validDate;
    }

    public String getEstateId() {
        return estateId;
    }

    public void setEstateId(String estateId) {
        this.estateId = estateId;
    }

   public Estate getEstate() {
        return estate;
    }

    public void setEstate(Estate estate) {
        this.estate = estate;
    }

    public String getResidenceName() {
        return residenceName;
    }

    public void setResidenceName(String residenceName) {
        this.residenceName = residenceName;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserRoomId() {
        return userRoomId;
    }

    public void setUserRoomId(String userRoomId) {
        this.userRoomId = userRoomId;
    }

    public Integer getLongtime() {
        return longtime;
    }

    public void setLongtime(Integer longtime) {
        this.longtime = longtime;
    }

    public Date getOpenTime() {
        return openTime;
    }

    public void setOpenTime(Date openTime) {
        this.openTime = openTime;
    }

    public String getFloor() {
        return floor;
    }

    public void setFloor(String floor) {
        this.floor = floor;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getUserAge() {
        return userAge;
    }

    public void setUserAge(String userAge) {
        this.userAge = userAge;
    }
    public String getSensitiveStatus() {
        return sensitiveStatus;
    }

    public void setSensitiveStatus(String sensitiveStatus) {
        this.sensitiveStatus = sensitiveStatus;
    }
}